package com.zhiche.lisa.lspm.dao.model.driver;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 司机报班状态
 * </p>
 *
 * @author qichao
 * @since 2018-06-27
 */
@TableName("lisa_driver_checkin_status")
public class DriverCheckinStatus extends Model<DriverCheckinStatus> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 报班ID
     */
	@TableField("checkin_id")
	private Long checkinId;
    /**
     * 报班状态：10-申请取消;20-已取消;30-已安排;40-未安排;50-已失效
     */
	@TableField("checkin_status")
	private String checkinStatus;
    /**
     * 对应报班状态的原因描述
     */
	private String comment;
    /**
     * 取消审核人ID
     */
	@TableField("auditor_id")
	private Long auditorId;
    /**
     * 记录创建时间
     */
	@TableField("gmt_create")
	private Date gmtCreate;
    /**
     * 租户ID
     */
	@TableField("tenant_id")
	private Long tenantId;

	/**
	 * 创建人
	 */
	private String creator;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getCheckinId() {
		return checkinId;
	}

	public void setCheckinId(Long checkinId) {
		this.checkinId = checkinId;
	}

	public String getCheckinStatus() {
		return checkinStatus;
	}

	public void setCheckinStatus(String checkinStatus) {
		this.checkinStatus = checkinStatus;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public Long getAuditorId() {
		return auditorId;
	}

	public void setAuditorId(Long auditorId) {
		this.auditorId = auditorId;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Long getTenantId() {
		return tenantId;
	}

	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "DriverCheckinStatus{" +
			", id=" + id +
			", checkinId=" + checkinId +
			", checkinStatus=" + checkinStatus +
			", comment=" + comment +
			", auditorId=" + auditorId +
			", gmtCreate=" + gmtCreate +
			", tenantId=" + tenantId +
			"}";
	}
}
